

#include <cocos2d.h>

#include "Jumper.h"
#include "JumpBlock.h"


using namespace cocos2d;

Jumper::Jumper()
{
	blockIdx = 0;
}



bool Jumper::IsDead()
{
	if(hp <= 0){
		return true;
	}

	return false;
}


void Jumper::Wave()
{
	CCSize s = getContentSize();
	CCPoint twirlPos = ccp(this->getPositionX() +s.width/2,0);

	/*switch(id ){
	case 1:
		twirlPos = ccp(this->getPositionX() +s.width/2,0);
		break;
	case 2:
		twirlPos = ccp(this->getPositionX() +s.width/2,0);
		break;
	case 3:
		twirlPos = ccp(this->getPositionX() +s.width/2,0);
		break;
	}*/

	CCActionInterval* act =  CCTwirl::create(1.0f,CCSizeMake(1.0f,1.0f), twirlPos, 1, 0.10f ); 
    //CCActionInterval* waves = CCWaves::create(1, CCSizeMake(5,5), 1, 1, true, true);
	runAction(act);
}